from flask import Blueprint, render_template, request, redirect, session
from ..utils import db

lu = Blueprint(name="logout", import_name=__name__, url_prefix='/')


@lu.route('/logout')
def logout():
    # Remove user info from session
    session.pop('user_info', None)
    # Redirect to login page
    return redirect('/login')
